# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=netsed
pkgver=1.3
pkgrel=3
pkgdesc="The network packet stream editor"
url="http://silicone.homelinux.org/projects/netsed/"
arch="all"
license="GPL"
checkdepends="ruby ruby-test-unit" 
makedepends="linux-headers"
source="http://silicone.homelinux.org/release/$pkgname/$pkgname-$pkgver.tar.gz
default-path.patch"
builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="5ffed86b462c6f89dac9d19184917b5b0759b49862ba0b34701ff2d3aa8cfe55502abb0b09594eb993c50a18962f0ca30c8e9cb96d2445f8c2877189b9a9ac79  netsed-1.3.tar.gz
a4c4cdcdaf8b5b6286d7b4870e06bf5b783e58f8ee19efee245aa3d2612b7257340799ac0fc188c928a11612591499759c477dfce7914cefd8e9403854dfd032  default-path.patch"
